package pri.ydy.eduService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description:
 * @Author: 叶栋永
 * @CreateTime: 2021/2/20
 * @Company:
 */
@Component
@FeignClient(value = "service-order")
public interface OrdersClient {

    //根据课程id和用户id查询课程是否购买
    @GetMapping("/eduorder/order/isBuyCourse/{courseId}/{memberId}}")
    public boolean isBuyCourse(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
